package com.shchekoldin.juliet.json.entities;

import com.shchekoldin.juliet.json.annotation.ToJson;
import com.shchekoldin.juliet.json.entities.person.IPerson;

public class Comment {

    @ToJson(profiles = { ToJsonProfileType.COMMENT })
    private long id;

    @ToJson(profiles = { ToJsonProfileType.COMMENT })
    private String text;

    @ToJson(profiles = { ToJsonProfileType.COMMENT })
    private IPerson author;

    @ToJson(profiles = { ToJsonProfileType.COMMENT }, includeOnly = { "id", "author" } )
    private Comment parentComment;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public IPerson getAuthor() {
        return author;
    }

    public void setAuthor(IPerson author) {
        this.author = author;
    }

    public Comment getParentComment() {
        return parentComment;
    }

    public void setParentComment(Comment parentComment) {
        this.parentComment = parentComment;
    }

}
